/**
 * Created by liuhanhui on 2017/9/5.
 */
require.config(
    {
        paths: {
            'jquery': '../../js/jquery.min.js?time=' + (new Date()).getTime(),
            'toastr': 'https://cdn.bootcss.com/toastr.js/latest/js/toastr.min.js?time=' + (new Date()).getTime(),
            'bootstrap': '../../js/bootstrap.js?time=' + (new Date()).getTime(),
            'app': '../../js/app.js?time=' + (new Date()).getTime(),
            'appPlugin': '../../js/app.plugin.js?time=' + (new Date()).getTime(),
            'slimscroll': '../../js/slimscroll/jquery.slimscroll.min.js?time=' + (new Date()).getTime(),
            'ajaxDIY': '../../js/diy/ajaxDIY.js?time=' + (new Date()).getTime(),
        }
    }
);
require(['jquery'], function ($) {
    require(['toastr', 'bootstrap', 'app', 'appPlugin', 'slimscroll', 'ajaxDIY'], function (toastr) {
        toastr.options = {
            "closeButton": false, //是否显示关闭按钮
            "debug": false, //是否使用debug模式
            "positionClass": "toast-top-center",//弹出窗的位置
            "showDuration": "300",//显示的动画时间
            "hideDuration": "1000",//消失的动画时间
            "timeOut": "5000", //展现时间
            "extendedTimeOut": "1000",//加长展示时间
            "showEasing": "swing",//显示时的动画缓冲方式
            "hideEasing": "linear",//消失时的动画缓冲方式
            "showMethod": "fadeIn",//显示时的动画方式
            "hideMethod": "fadeOut" //消失时的动画方式
        };
        var url = "index_content.html?time=" + (new Date()).getTime();

        $.ajaxDIY(url, {}, "get", false, function (result) {
            $("#content").html(result);
        }, null);
    });

});